﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="NewStudent.aspx.cs" Inherits="SistemaAcademico.Pages.NewStudent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="content" runat="server">
    <div>
        <link href="../Styles/NewStudent.css" rel="stylesheet" type="text/css" />
    </div>
    <h3>
        Novo estudante</h3>
    <asp:ValidationSummary ID="summary" runat="server" ShowMessageBox="true" DisplayMode="BulletList"
        EnableTheming="True" ShowSummary="False" />
    <div id="divInformation">
        <p>
            Matrícula:</p>
        <asp:TextBox ID="txtMatricula" Enabled="false" ForeColor="Gray" CssClass="txtbox txtboxNewStudent"
            runat="server"></asp:TextBox>
        <p>
            *Nome Completo</p>
        <asp:TextBox ID="txtNome" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="vldNome" Display="None" runat="server" ErrorMessage="Digite o nome"
            ControlToValidate="txtNome" Text="*"></asp:RequiredFieldValidator>
        <p>
            *Login</p>
        <asp:TextBox ID="txtLogin" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="None" runat="server"
            ErrorMessage="Digite o login" ControlToValidate="txtLogin" Text="*"></asp:RequiredFieldValidator>
        <p>
            *Password</p>
        <asp:TextBox TextMode="Password" ID="txtPassword" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="None" runat="server"
            ErrorMessage="Digite o Password" ControlToValidate="txtPassword" Text="*"></asp:RequiredFieldValidator>
        <p>
            *CPF
        </p>
        <asp:TextBox ID="txtCPF" CssClass="txtbox txtboxNewStudent cpf" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="vldCpf" Display="None" runat="server" ErrorMessage="Digite o CPF"
            ControlToValidate="txtCPF" Text="*"></asp:RequiredFieldValidator>
        <p>
            *RG
        </p>
        <asp:TextBox ID="txtRg" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="vldRg" Display="None" runat="server" ErrorMessage="Digite o RG"
            ControlToValidate="txtRg" Text="*"></asp:RequiredFieldValidator>
        <p>
            *Data de Nascimento
        </p>
        <asp:TextBox ID="txtDate" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="vldDate" Display="None" runat="server" ErrorMessage="Digite a data de nascimento"
            ControlToValidate="txtDate"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator runat="server" ValidationExpression="^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/[1-3][0-9]{3}$"
            Display="None" ID="vldDateExpression" ErrorMessage="Digite uma data válida" ControlToValidate="txtDate"></asp:RegularExpressionValidator>
    </div>
    <div id="divLeft" class="listBoxesDegreeCourse">
        <p>
            *Sexo
        </p>
        <asp:DropDownList ID="ddlSexo" CssClass="ddl ddlSexo" runat="server">
            <asp:ListItem Text="Selecione o sexo" Value="0"></asp:ListItem>
            <asp:ListItem Text="Masculino" Value="M"></asp:ListItem>
            <asp:ListItem Text="Feminino" Value="F"></asp:ListItem>
        </asp:DropDownList>
        <p>
            Endereço
        </p>
        <asp:TextBox ID="txtEndereco" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <p>
            CEP
        </p>
        <asp:TextBox ID="txtCep" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <p>
            Telefone
        </p>
        <asp:TextBox ID="txtTelefone" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <p>
            Email
        </p>
        <asp:TextBox ID="txtEmail" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
        <p>
            *Curso
        </p>
        <asp:DropDownList CssClass="ddl ddlDegreeCourse" ID="ddlDegreeCourse" runat="server">
        </asp:DropDownList>
        <p>
            *Período
        </p>
        <asp:DropDownList CssClass="ddlPeriodo ddl" ID="ddlPeriodo" runat="server">
            <asp:ListItem Text="Matutino" Value="M"></asp:ListItem>
            <asp:ListItem Text="Vespertino" Value="V"></asp:ListItem>
            <asp:ListItem Text="Noturno" Value="N"> </asp:ListItem>
            <asp:ListItem Text="Integral" Value="I"></asp:ListItem>
        </asp:DropDownList>
        <p>
            *Início do Sem.
        </p>
        <asp:TextBox ID="txtInicio" CssClass="txtbox txtboxNewStudent" runat="server"></asp:TextBox>
    </div>
    <div id="divButton" class="buttonSave">
        <asp:Button ID="btnCadastrar" CssClass="buttonJQuery" runat="server" Text="Salvar"
            OnClick="btnCadastrar_Click" />
    </div>
</asp:Content>
